package com.zb.automation.service;

import com.alibaba.excel.ExcelWriter;
import com.zb.automation.model.request.ReqAnalysisSwaggerVO;
import com.zb.automation.model.request.ReqSwaggerDTO;
import com.zb.automation.model.response.AnalysisSwaggerDTO;
import com.zb.automation.model.response.JsonParamsDTO;

import javax.servlet.ServletOutputStream;
import java.util.List;

public interface AnalysisJsonService {

    /**
     * @Author ZhangBin
     * @Date 2022/7/23 14:01
     * @Description json转化为Bean
     */
    List<JsonParamsDTO> analysisJson(String json);
    /**
     * @Author ZhangBin
     * @Date 2022/7/23 14:01
     * @Description 解析swagger地址为tree
     */
    List<AnalysisSwaggerDTO> analysisSwagger2Tree(String path);

    /**
     * @Author ZhangBin
     * @Date 2022/7/23 14:01
     * @Description 解析swagger地址为List
     */
    List<ReqSwaggerDTO> analysisSwagger2List(String path);
    /**
     * @Author ZhangBin
     * @Date 2022/7/23 14:01
     * @Description 导出Excel
     */
    String exportExcel(List<ReqSwaggerDTO> reqSwaggerDTOS);
}
